//
//  SetHvacSystemApi.m
//  AFNetworking
//
//  Created by Henry on 2023/4/28.
//

#import "SetHvacSystemApi.h"
@interface SetHvacSystemApi()

@property(nonatomic,assign)HvacSystemType hvacType;

@end
@implementation SetHvacSystemApi

-(id)initWithDevId:(NSString *)thingName withType:(HvacSystemType)hvacType{
    if(self = [super init]){
        self.thingName = thingName;
        self.hvacType = hvacType;
    }
    return self;
}


-(id)getTopic{
    return [NSString stringWithFormat:@"/command/platform/%@",self.thingName];
}

-(id)getCommandContent{
    return @{@"command":@"SetSystemType",@"param":@{@"value":@(self.hvacType)}};
}

-(id)getSubcribeTopic{
    return [NSString stringWithFormat:@"$aws/things/%@/shadow/name/%@/update/accepted",self.thingName,self.thingTypeName];
}


@end
